package cn.net.shuxing.yifu.common.bean;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;

@Data
public class UserBankCard extends BaseBean implements Serializable{
	@Id
	@Column
	private Integer id;
	@Column
	private Integer userId;
	@Column
	private String holderName;
	@Column
	private String idCardNum;
	@Column
	private String bankCardNum;
	@Column
	private String openBank;
	@Column
	private String openBankBranch;
	@Column
	private String phoneNum;
	@Column
	private Integer isDefault;
	@Column
	private Integer type;
	@Column
	private Integer deleted;
	@Column
	private java.time.LocalDateTime createTime;
	@Column
	private java.time.LocalDateTime updateTime;

	@Column
	private String validityTerm;

}

/*
{
	id:主键,
	userId:用户id,
	holderName:持卡人姓名,
	idCardNum:,
	bankCardNum:银行卡号,
	openBank:开户银行,
	openBankBranch:开户支行,
	phoneNum:手机号,
	type:类型（与user_id配合使用   1-user表对应的用户id ，2-sys_user表对应的用户id）,
	isDefault:是否是默认银行卡,0表示不是默认,1表示是默认,
	deleted:是否已被删除，0表示未被删除，1表示已被删除,
	createTime:创建时间,
	updateTime:最新修改时间,
	validityTerm: 有效期
}

*/
